﻿using rmTest.Common.ModelUtil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace rmTest.First.ServiceInterface
{
    public interface IBaseService
    {

        List<T> GetList<T>() where T : BaseModel, new();

        T Get<T>(int id) where T : BaseModel, new();

        int InsertDataByModel<T>(T t) where T : BaseModel;

        int UpdateDataByModel<T>(T t) where T : BaseModel;

        int Delete<T>(int id) where T : BaseModel;
    }
}
